// component/comp3/comp3.ts
import {storeBindingsBehavior} from 'mobx-miniprogram-bindings'
import {store} from '../../store/store'

Component({
  behaviors:[storeBindingsBehavior],
  storeBindings:{
      store,
      fields:{
        shareVar1:'shareVar1',
        shareVar2:'shareVar2',
        sum:'sum'
      },
      actions:['updateShareVar1']
  },
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
aa:1,
bb:1
  },

  /**
   * 组件的方法列表
   */
  methods: {
    addShareData(){
      this.updateShareVar1(3);
    },
  },
})
